package com.ankicoo.auth.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import static org.apache.shiro.crypto.hash.Md5Hash.ALGORITHM_NAME;

/**
 * Description: shiro 身份验证加密参数
 *
 * @author : QCYANG
 * @date : 2021/1/11 15:24
 */
@Component
@ConfigurationProperties
public class AuthenticationProperties {
    /**加密方式*/
    private String hashAlgorithmName = ALGORITHM_NAME;
    /**常量参数*/
    private Integer iterations = 10;

    public String getHashAlgorithmName() {
        return hashAlgorithmName;
    }

    public void setHashAlgorithmName(String hashAlgorithmName) {
        this.hashAlgorithmName = hashAlgorithmName;
    }

    public Integer getIterations() {
        return iterations;
    }

    public void setIterations(Integer iterations) {
        this.iterations = iterations;
    }
}
